package org.tedu.auto;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.tedu.bean.LubanUser;

@Configuration
@ConditionalOnProperty(
        prefix = "luban",
        value = "user.enable",
        havingValue = "true"
)
public class LubanUserAutoConfiguration {

    @Bean
    public LubanUser lubanUser(){
        return new LubanUser();
    }
}
